package com.example.feign;

import com.example.system.domain.SysTableScript;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cloud-console",fallback = com.example.feign.impl.SysTableScriptFeignServiceImpl.class)
public interface SysTableScriptFeignService {

    @GetMapping("/system/tablescript/getone")
    public SysTableScript getSysTableScriptById(@RequestParam("id") String id);

    @GetMapping("/system/tablescript/getall")
    public List<SysTableScript> getSysTableScriptList(@RequestParam("serverName")String serverName);
}
